<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

use App\Service\factory\UserServiceFactory;
use App\Service\interface\UserServiceInterface;
use App\Service\service\UserService;
use Hyperf\HttpServer\Server;
use Hyperf\JsonRpc\JsonRpcPoolTransporter;
use Hyperf\JsonRpc\JsonRpcTransporter;

return [
    // 多端口进行监听
    'InnerHttp' => Server::class,
    //抽象对象注入
    //UserServiceInterface::class => UserService::class,
    //工厂对象注入
    //UserServiceInterface::class => UserServiceFactory::class,
    //    CalculatorServiceInterface::class => CalculatorServiceConsumer::class,
    //重写CoreMiddleWare行为,会重置系统默认的CoreMiddleWare
    //Hyperf\HttpServer\CoreMiddleware::class => App\Middleware\CoreMiddleware::class,
    //使用 JsonRpcPoolTransporter,框架提供了基于连接池的 Transporter
    //JsonRpcTransporter::class => JsonRpcPoolTransporter::class,
];
